import Department from './department.vue'
import DepartmentAdd from './departmentAdd.vue'
import DepartmentEdit from './departmentEdit.vue'
import DepartmentSearch from './departmentSearch.vue'

const components = [
  Department,
  DepartmentAdd,
  DepartmentEdit,
  DepartmentSearch
]

const main = {
  install(Vue) {
    components.map((component) => {
      Vue.component(component.name, component)
    })
  }
}
export default main
